﻿#ifndef __FRAME_PROTOCOL_H__
#define __FRAME_PROTOCOL_H__

#define CMD_TEST_1 0x1234
#define CMD_TEST_2 0x1235
#define CMD_TEST_3 0x1236
#define CMD_TEST_4 0x1237

typedef unsigned char ClientType;
#define CLIENT_TYPE_UNKNOW  0
#define CLIENT_TYPE_APP     1
#define CLIENT_TYPE_BUSINESS_USER_AUTH 2


//CMD
#define CMD_REGISTER_BACKEND 0xFFFF
#define CMD_REGISTER_APP     0x0001
#define CMD_REGISTER_APP_R   0x8001


//BUSINESS CMD
#define CMD_BUSINESS_CMD_USERAUTH_REPLY_CODE_SUCCESS  0x0
#define CMD_BUSINESS_CMD_USERAUTH_REPLY_CODE_ONLINEALREADY 0x3



#pragma pack(1)
struct RegisterBusinessHead
{
    ClientType type;
    uint16_t cmd_count;
};

struct RegisterBusinessBody
{
    uint16_t cmd;
};

#pragma pack()

#endif
